/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package wargame.entity;

import java.util.ArrayList;
import module.Utility_Function;

/**
 *
 * @author Clarence
 */
public class Player {

    private int player_id;
    private String player_name = "";
    private String company_name = "";
    private int balance = 0;
    private String balance_string;
    private int track_record_points = 0;
    private ArrayList<Project> player_project;

    public void addBalance(int amount){
        this.balance += amount;
    }

    public void deductBalance(int amount){
        this.balance -= amount;
    }

    public ArrayList<Project> getPlayer_project() {
        return player_project;
    }

    public void setPlayer_project(ArrayList<Project> player_project) {
        this.player_project = player_project;
    }
    
    public Player() {
    }

    public String getBalance_string() {
        return Utility_Function.formatCurrency(balance);
    }

    public void setBalance_string(String balance_string) {
        this.balance_string = balance_string;
    }

    public int getBalance() {
        return balance;
    }

    public void setBalance(int balance) {
        this.balance = balance;
    }

    public String getCompany_name() {
        return company_name;
    }

    public void setCompany_name(String company_name) {
        this.company_name = company_name;
    }

    public int getPlayer_id() {
        return player_id;
    }

    public void setPlayer_id(int player_id) {
        this.player_id = player_id;
    }

    public String getPlayer_name() {
        return player_name;
    }

    public void setPlayer_name(String player_name) {
        this.player_name = player_name;
    }

    public int getTrack_record_points() {
        return track_record_points;
    }

    public void setTrack_record_points(int track_record_points) {
        this.track_record_points = track_record_points;
    }
}
